﻿using System;
using System.Web;

namespace MyHealthByDesign.Account
{
    public partial class Login : System.Web.UI.Page
    {
        Domain.Domain domain = new Domain.Domain();

        protected void Page_Load(object sender, EventArgs e)
        {
//            RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);
        }

//        protected void btnSubmit_Click(object sender, EventArgs e)
//        {
//            string username = txtEmail.Text;
//            string password = txtPassword.Text;
//
//            if(domain.IsValidUser(username, password))
//            {
//                var cookie = new HttpCookie("User") {Value = "Brenda"};
//                Response.Cookies.Add(cookie);
//                Response.Redirect("../Views/MyHealth.aspx");
//            }
//
//            lblError.Text = "Invalid username or password. Please try again!";
//        }
    }
}
